home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _E231B76467B14E30976F97233ECB8ABE < prev    next >
Encoding:
Text File  |  2004-01-06  |  1.8 KB  |  53 lines

  1. --------------------------------------------------
  2. --    Created By: Petar
  3.  
  4.  
  5. AIBehaviour.BaboonAttack = {
  6.     Name = "BaboonAttack",
  7.  
  8.  
  9.     ---------------------------------------------
  10.     OnPlayerSeen = function( self, entity, fDistance )
  11.         -- called when the enemy sees a living player
  12.     
  13.     end,
  14.     ---------------------------------------------
  15.     OnEnemyMemory = function( self, entity )
  16.         -- called when the enemy can no longer see its foe, but remembers where it saw it last
  17.     end,
  18.     ---------------------------------------------
  19.     OnInterestingSoundHeard = function( self, entity )
  20.         -- called when the enemy hears an interesting sound
  21.     end,
  22.     ---------------------------------------------
  23.     OnThreateningSoundHeard = function( self, entity )
  24.         -- called when the enemy hears a scary sound
  25.     end,
  26.     ---------------------------------------------
  27.     OnReload = function( self, entity )
  28.         -- called when the enemy goes into automatic reload after its clip is empty
  29.     end,
  30.     ---------------------------------------------
  31.     OnGroupMemberDied = function( self, entity )
  32.         -- called when a member of the group dies
  33.     end,
  34.     ---------------------------------------------
  35.     OnNoHidingPlace = function( self, entity, sender )
  36.         -- called when no hiding place can be found with the specified parameters
  37.     end,    
  38.     ---------------------------------------------
  39.     OnReceivingDamage = function ( self, entity, sender)
  40.     end,
  41.     --------------------------------------------------
  42.     OnBulletRain = function ( self, entity, sender)
  43.         -- called when the enemy detects bullet trails around him
  44.     end,
  45.     --------------------------------------------------
  46.     OnCloseContact = function ( self, entity, sender)
  47.         local rnd=random(1,5);
  48.         entity:InsertMeleePipe("attack_melee"..rnd);
  49.     end,
  50.     --------------------------------------------------
  51.  
  52.  
  53. }